package com.yelobblog.yelobblog.domain.Vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.yelobblog.yelobblog.domain.entity.user;
import com.yelobblog.yelobblog.domain.entity.category;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class articlesVo {
    private Integer id;
    private String title;
    private String content;
    private Integer authorId;
    private user author;
    private String description;
    private String imageUrl;
    @JsonIgnore
    private Integer categoryId;
    private category category;
    private Integer viewCount;
    private Integer commentCount;
    private Integer likeCount;
    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

}
